package com.yangyang.ralearn.net.message;

import org.jboss.netty.channel.Channel;

import com.yangyang.ralearn.common.JEnvironment;
import com.yangyang.ralearn.server.JSimulator;

/**
 * 抽象发送消息的基类
 * 
 * @author yangyang
 * 
 */
public abstract class AbstractReqMessage extends AbstractMessage {

	@Override
	public void Do(int id, Channel channel, JEnvironment environment,
			JSimulator simulator) {
		this.onGetClientMessage(id, channel, environment, simulator);
	}

	public abstract void onGetClientMessage(int id, Channel channel,
			JEnvironment environment, JSimulator simulator);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
